package edu.zzu.dao;

import java.util.List;

import edu.zzu.Entity.DLS;
import edu.zzu.Entity.Delivery;
import edu.zzu.Entity.Package;

public interface PackageDao {

    List<Package> getPackageBySenderTel(String tel);

    List<Package> getPackageByReceiverTel(String tel);

    int savePackage(Package p);

    boolean updatePackageStatus(String id,Integer status,Long handler,Long transNodeId,Float x,Float y);

    List<DLS> selectDLSByRegionCode(String regionCode);

    List<Delivery> selectDeliveryByHandler(Long handler);

    Package selectPackageById(String id);

    boolean checkPackageExistById(String id);

    Long selectPackageAmountByTransNodeId(Long id);

    List<Package> selectPackagesOfTransNodeId(Long id);

    List<Package> selectPackagesByStatus(Integer status);
}
